package org.ihelpuoo.orm.handler.rs;

import java.lang.reflect.Field;
import java.sql.ResultSet;

import org.ihelpuoo.orm.ObjectRule;
import org.ihelpuoo.orm.handler.ObjectProcessor;
import org.ihelpuoo.orm.handler.ReadNormalFieldHandler;

public class RsReadNormalFieldHandler extends ReadNormalFieldHandler
{

	public RsReadNormalFieldHandler(ObjectProcessor beanHandler)
	{
		super(beanHandler);
	}

	@Override
	protected Object evalObjectValue(ObjectRule r, Field f, Object src, String prefix) throws Exception
	{
		return ((ResultSet)src).getObject(r.getDBFieldName(f));
	}

}
